<%-- 
    Document   : Login
    Created on : 7-apr-2010, 17.13.57
    Author     : Rachid Ouchary, Fabio Strocco, Max Passaghe, Marco Tansini.
--%>

<%@page contentType="text/html" pageEncoding="UTF-8" import="servlet.ServletUtil"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
    "http://www.w3.org/TR/html4/loose.dtd">

<div id="login_box">
    <script type="text/javascript" src="javascript/base.js"></script>
    <script type="text/javascript" src="javascript/checks.js"></script>
    <form action="MainDispatcher?operation=<%= ServletUtil.ACTION_LOGIN%>" method="post" name="Login_form" target="_self"
          onsubmit="return checkLogin();">
        <input id="username" name="username" type="text" value="username" class="txLogin"
               onclick="textLeaveMessage(this, 'username')" style="color: gray"/>
        <input id="password" name="password" type="password" value="password" class="txPassword"/>
        <input type="image" id="submit" src="images/freccia.png" alt="Submit button" class="freccia_login">
    </form>

    <p class="loginError" id="loginError" style='visibility: <%= (request.getAttribute("error") == null
                               ? "hidden" : "visible")%>' >Username o password errati</p>
    <a href="MainDispatcher?operation=<%= ServletUtil.ACTION_GET_RESOURCE%>&<%= ServletUtil.PARAM_RESOURCE%>=Registrazione.jsp"
       style="visibility: <%= (request.getParameter(ServletUtil.PARAM_RESOURCE) != null
                         && request.getParameter(ServletUtil.PARAM_RESOURCE).equals("Registrazione.jsp") ? "hidden" : "visible" ) %>"
       target="_self" class="lbRegistrazione">Registrazione</a>
    
</div>
